import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

import HomeContainer from '../components/layout/HomeContainer.vue'

import MemberContainer from '../components/layout/MemberContainer.vue'

import SearchContainer from '../components/layout/SearchContainer.vue'

import ShopcarCont from '../components/layout/ShopcarCont.vue'

// 3. 创建路由对象
var router = new VueRouter({
    routes: [
        { path: '/home', component: HomeContainer },
        { path: '/member', component: MemberContainer },
        { path: '/search', component: SearchContainer },
        { path: '/shopcar', component: ShopcarCont },
    ],
    linkActiveClass: 'mui-active'
})

// 把路由对象暴露出去
export default router